gl renderer: Optimize text drawing
authorTimm Bäder <mail@baedert.org>
Thu, 23 Nov 2017 18:49:41 +0000 (19:49 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 21 Dec 2017 18:12:30 +0000 (19:12 +0100)
commit832920c6baa805398d6678e2f2cea079e93ce7bf
tree00a73ba734e93083f8831ddd7b2fb21b96c23fb7
parentfa564e1f93b6236b358decded8104b35520015a8
gl renderer: Optimize text drawing

Text nodes will almost always end up using the exact same texture and
the same program. So, in that case we can simply add vertex data for all
the characters we need to draw and use just one draw call.
gsk/gl/gskglrenderer.c
gsk/gl/gskglrenderops.c
gsk/gl/gskglrenderopsprivate.h